package yogiro.to;

public class ProductTimeTO {
	private int productTimeNo;
	private String productTime;
	private int productDateNo;
	private int productRreservationNumber;
	
	public ProductTimeTO(){}

	public ProductTimeTO(int productTimeNo, String productTime,
			int productDateNo, int productRreservationNumber) {
		super();
		this.productTimeNo = productTimeNo;
		this.productTime = productTime;
		this.productDateNo = productDateNo;
		this.productRreservationNumber = productRreservationNumber;
	}

	public int getProductTimeNo() {
		return productTimeNo;
	}

	public void setProductTimeNo(int productTimeNo) {
		this.productTimeNo = productTimeNo;
	}

	public String getProductTime() {
		return productTime;
	}

	public void setProductTime(String productTime) {
		this.productTime = productTime;
	}

	public int getProductDateNo() {
		return productDateNo;
	}

	public void setProductDateNo(int productDateNo) {
		this.productDateNo = productDateNo;
	}

	public int getProductRreservationNumber() {
		return productRreservationNumber;
	}

	public void setProductRreservationNumber(int productRreservationNumber) {
		this.productRreservationNumber = productRreservationNumber;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + productDateNo;
		result = prime * result + productRreservationNumber;
		result = prime * result
				+ ((productTime == null) ? 0 : productTime.hashCode());
		result = prime * result + productTimeNo;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProductTimeTO other = (ProductTimeTO) obj;
		if (productDateNo != other.productDateNo)
			return false;
		if (productRreservationNumber != other.productRreservationNumber)
			return false;
		if (productTime == null) {
			if (other.productTime != null)
				return false;
		} else if (!productTime.equals(other.productTime))
			return false;
		if (productTimeNo != other.productTimeNo)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ProductTimeTO [productTimeNo=" + productTimeNo
				+ ", productTime=" + productTime + ", productDateNo="
				+ productDateNo + ", productRreservationNumber="
				+ productRreservationNumber + "]";
	}

	}
